package com.sharemarking.application.wechat.entity;

import com.sharemarking.application.common.BaseEntity;

import javax.persistence.*;

/**
 * Created by Administrator on 2017/10/12.
 */
@Entity
@Table(name = "w_bless")
public class Bless extends BaseEntity{
    @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "from_client_id")
    Client fromClient;

    @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "to_client_id")
    Client toClient;
    String bText;
    String bImage;
    String bAudio;
    String bVideo;

    public Client getFromClient() {
        return fromClient;
    }

    public void setFromClient(Client fromClient) {
        this.fromClient = fromClient;
    }

    public Client getToClient() {
        return toClient;
    }

    public void setToClient(Client toClient) {
        this.toClient = toClient;
    }

    public String getbText() {
        return bText;
    }

    public void setbText(String bText) {
        this.bText = bText;
    }

    public String getbImage() {
        return bImage;
    }

    public void setbImage(String bImage) {
        this.bImage = bImage;
    }

    public String getbAudio() {
        return bAudio;
    }

    public void setbAudio(String bAudio) {
        this.bAudio = bAudio;
    }

    public String getbVideo() {
        return bVideo;
    }

    public void setbVideo(String bVideo) {
        this.bVideo = bVideo;
    }
}
